package com.shenyi.shop.service;

import com.shenyi.shop.api.IGoodsAttributeService;
import com.shenyi.shop.dao.GoodsAttributeMapper;
import com.shenyi.shop.entity.GoodsAttributeDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc 商品属性
 * @see
 * @since 1.0
 */
@Service
public class GoodsAttributeServiceImpl implements IGoodsAttributeService {

    @Autowired
    private GoodsAttributeMapper goodsAttributeMapper;

    @Override
    public GoodsAttributeDO queryObject(Integer id){
        return goodsAttributeMapper.queryObject(id);
    }

    @Override
    public List<GoodsAttributeDO> queryList(Map<String, Object> map){
        return goodsAttributeMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return goodsAttributeMapper.queryTotal(map);
    }

    @Override
    public void save(GoodsAttributeDO goodsAttribute){
        goodsAttributeMapper.save(goodsAttribute);
    }

    @Override
    public void update(GoodsAttributeDO goodsAttribute){
        goodsAttributeMapper.update(goodsAttribute);
    }

    @Override
    public void delete(Integer id){
        goodsAttributeMapper.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        goodsAttributeMapper.deleteBatch(ids);
    }

}
